<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
<div class="timo-detail-page">
    <div class="timo-detail-title">基本信息</div>
    <table class="layui-table timo-detail-table">
        <colgroup>
            <col width="100px">
            <col>
            <col width="100px">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <th>客户名称</th>
            <td th:text="${customer.name}"></td>
            <th>客户简称</th>
            <td th:text="${customer.shortName}"></td>
        </tr>
        <tr>
            <th>客户来源</th>
            <td th:text="${#dicts.keyValue('CUSTSOURCE',customer.source)}"></td>
            <th>客户标签</th>
            <td th:text="${#dicts.keyValue('CUSTTAG',customer.tag)}"></td>
        </tr>
        <tr>
            <th>客户状态</th>
            <td th:text="${#dicts.keyValue('CUSTSTATE',customer.state)}"></td>
            <th>重要程度</th>
            <td th:text="${#dicts.keyValue('CUSTIMPOT',customer.importanceLevel)}"></td>

        </tr>

        <tr>
            <th>所属行业</th>
            <td th:text="${#dicts.keyValue('INDUSTRY',customer.industry)}"></td>
            <th>联系人</th>
            <td th:text="${customer.contact}"></td>
        </tr>
        <tr>
            <th>职务</th>
            <td th:text="${customer.duty}"></td>
            <th>手机号</th>
            <td th:text="${customer.phone}"></td>
        </tr>
        <tr>
            <th>地址</th>
            <td colspan="3" th:text="${customer.address}"></td>
        </tr>
        <tr>
            <th>负责人</th>
            <td th:text="${customer.userName}"></td>
            <th>协同人</th>
            <td th:text="${partners}"></td>
        </tr>
        <tr>
            <th>创建者</th>
            <td th:text="${customer.createBy?.nickname}"></td>
            <th>更新者</th>
            <td th:text="${customer.updateBy?.nickname}"></td>
        </tr>
        <tr>
            <th>创建时间</th>
            <td th:text="${#dates.format(customer.createDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
            <th>更新时间</th>
            <td th:text="${#dates.format(customer.updateDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
        </tr>
        <tr>
            <th>备注</th>
            <td th:text="${customer.remark}" colspan="3"></td>
        </tr>
        </tbody>
    </table>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>